﻿@model CmsContentType

@{
    ResFile = "cms_Content";
    bool isInAjax = true.Equals(ViewBag.IsInAjax);
    ViewBag.Title = _("Edit {0} content type", Model.ContentTypeName);
}

@if (!isInAjax)
{
<p><a class="b-back-link" href="/admin/cmscontenttype"><i class="b-icon"></i> @_("Back to content types")</a></p>

<h1 class="g-clear">
    <i class="b-icon b-icon_h b-icon_h_contenttypes"></i>
	<span class="b-overflow">
		@_("'{0}' content type items", Model.ContentTypeName)
		<span class="b-intro-text">@_("Table below shows all items")</span>
	</span>
</h1>

<p class="clear-left">
    <a class="b-button" href="@Url.Action("add", "cmscontent", new { id = @Model.Id })">@_("Add a content")</a>
    <a class="b-button" href="@Url.Action("editdetails", "cmscontenttype", new { id = @Model.Id })">@_("Edit details")</a>
    <a class="b-button" href="@Url.Action("MetaFields", "cmscontenttype", new { id = @Model.Id })">@_("Content Type Meta")</a>
</p>


}
@{Html.RenderAction("index", "cmscontent", new { id = @Model.Id });}
